package dd.prog2.exercises.set05;

public class Tsp3 extends Tsp {

	public Tsp3() {
		super(15);
		this.addPlace("A", 0, 1, 1);
		this.addPlace("B", 1, 1, 2);
		this.addPlace("C", 2, 1, 3);
		this.addPlace("D", 3, 1, 4);
		this.addPlace("E", 4, 2, 2);
		this.addPlace("F", 5, 2, 3);
		this.addPlace("G", 6, 4, 1);
		this.addPlace("H", 7, 4, 4);
		this.addPlace("I", 8, 4, 5);
		this.addPlace("J", 9, 4, 6);
		this.addPlace("K", 10, 4, 7);
		this.addPlace("L", 11, 5, 1);
		this.addPlace("M", 12, 5, 4);
		this.addPlace("N", 13, 5, 5);
		this.addPlace("O", 14, 5, 6);
	}

	public void asGraph() {
//		System.out.println("TSP 3:");
		System.out.println(". . . K .");
		System.out.println(". . . J O");
		System.out.println(". . . I N");
		System.out.println("D . . H M");
		System.out.println("C F . . .");
		System.out.println("B E . . .");
		System.out.println("A . . G L");
		System.out.println("- - - - - - - - -");
	}

}
